class UpdateItemPictures < ActiveRecord::Migration
  def self.up
    remove_column :item_pictures, :user_id
    remove_column :item_pictures, :pic_1
    remove_column :item_pictures, :pic_2
    remove_column :item_pictures, :pic_3
    add_column    :item_pictures, :picture_id, :integer, :null => false
  end

  def self.down
    add_column    :item_pictures, :user_id, :integer
    add_column    :item_pictures, :pic_1,   :integer
    add_column    :item_pictures, :pic_2,   :integer
    add_column    :item_pictures, :pic_3,   :integer
    remove_column :item_pictures, :picture_id
  end
end
